package com.lkd.controller;

import com.lkd.entity.Business;
import com.lkd.service.IBusinessService;
import com.lkd.vo.Result;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * ClassName: BusinessController
 * Package: com.lkd.controller
 * Description:
 *
 * @Author zt
 * @Create 2025/10/15 22:02
 * @Version 1.0
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/vm-service/businessType")
public class BusinessController {
    private final IBusinessService businessService;



    /**
     * 查询商圈列表
     */
    @GetMapping
    public Result queryBusinessList(){
        List<Business> list = businessService.list();
        return Result.success(list);
    }

}
